Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar Redesign with Icons #39

Merged
merged 4 commits into from
Nov 16, 2024
Merged

Navbar Redesign with Icons #39

merged 4 commits into from
Nov 16, 2024

Conversation

Quashnock
Copy link
Collaborator

  • Swapped indicator circles out with icons
    The icons I used from the vue materials UI library. I tested them by temporarily hardcoding the websocket and robot controller states, so you may want to fully test them with actual connections to the robot.
  • Placeholder ping indicator
    As requested in the discord meeting on 11/15 I added a placeholder ref for latency inside of useRobotLibStore and had the respective TS file export it. The ping indicator should update accordingly when the latency value is changed.
  • Small design changes to seperate indicator from tab selector
    I felt that if we use icons it may be a bit difficult to seperate indicators from clickable tabs, so I gave indicators a different background color and the clickable tabs a hover effect.

Please let me know if you have any questions or run into any issues!

@Quashnock Quashnock linked an issue Nov 16, 2024 that may be closed by this pull request
Copy link
Collaborator

@adamseth2 adamseth2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just merge from master and looks good

@@ -11,6 +11,7 @@ const SECONDS_TO_TIMESTAMP = 1000;
export const useRoslibStore = defineStore('roslib', () => {
const ros = new ROSLIB.Ros({ url: undefined });
const isWebSocketConnected = ref<boolean>(false);
const latency = ref<Number>(0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing with typescript. Primitive types string, number and boolean are lowercase while all others you capital the first letter. Change to "number"

@uellenberg
Copy link
Collaborator

@Quashnock I resolved the merge conflict above. Make sure do a git pull, then make the changes Adam requested. Thanks!

@uellenberg
Copy link
Collaborator

Also, looks like CI failed. Make sure you have the formatter enabled. You can format everything using npm run format.

Copy link
Collaborator

@adamseth2 adamseth2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Quashnock Quashnock merged commit 24626b0 into master Nov 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redesign Navbar to use icons instead & shows Latency
3 participants